#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void solve() {
    /*********Begin*********/
    int a = 1, b = 1;
    int t;
    int sum1 = 0, sum2 = 0;
    int i;
    for (a = 218;a < 221;a++) {
        for (i = 1;i < a;i++) {
            if (a % i == 0) {
                t = i;
                sum1 += t;
            }
        }
        for (b = 283;b < 285;b++) {

            for (i = 1;i < b;i++) {
                if (b % i == 0) {
                    t = i;
                    sum2 += t;
                }
            }
            if (sum1 == b && sum2 == a) {
                printf("(%d,%d)", a, b);
            }
            sum1 = 0;sum2 = 0;
        }
    }
    /*********End**********/
}
int main(void)
{
    solve();
    return 0;
}